<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body,
        html {
            margin: 0;
            padding: 0;
            background-color: #eee;
            height: 100%;
        }

        ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        * {
            text-decoration: none;
        }

        /* .blog{
            height: 600px;
            border: 1px solid #f88957;
            box-shadow: 1px 1px 5px 5px rgb(255 112 173 / 35%);
        }

        .b-l {
        width: 240px;
        height: 600px;
        background-color: aqua;
        }

        .blog-img {
            width: 240px;
            height: 200px;
            background-color: blue;
            position: relative;
        }

        .blog .b-l .blog-img img{
            width: 150px;
            height: 150px;
            background-color: yellow;
            position: absolute;
            margin: 50px 50px;
            border-radius: 50%;
            box-shadow: 0 0.3rem 2rem rgb(161 177 204 / 60%);
        } */
        .blog,
        .header-box {
            height: 100%;
        }

        .blog-bg {
            height: 180px;
            background-image: url('https://static.acgxt.com/images/banner.png');
            background-repeat: no-repeat;
            background-size: 100% 100%;
            position: relative;

        }

        .nav {
            width: 100%;
            height: 50px;
            background-position: bottom;
            background-repeat: no-repeat;
            position: absolute;
            bottom: 0;
            opacity: .7;
            background-color: hsla(0, 0%, 92.5%, .3);
        }

        .nav .top {
            width: 75%;
            position: relative;
            margin: 0 auto;
            height: 50px;
            line-height: 50px;
        }

        .nav .top ul li {
            float: left;
        }

        .nav .top ul li a {
            color: #fff;
            display: block;
            padding: 0 20px;
            font-size: 14px;
            transition: .3s ease-in, .2s ease-out;
        }

        .nav .top ul li a:hover {
            text-shadow: 0 0 5px #ccc;
            background-color: hsla(0, 0%, 100%, .1);
        }

        .header {
            width: 75%;
            margin: 0 auto;
        }

        .header .h-l {
            padding: 20px 0 0;
            display: flex;

        }

        .header .h-l h1 {
            flex: 1;
        }

        .header .h-two {
            flex: 0 0 230px;

        }

        .header .h-two .h-y {
            background-color: hsla(0, 0%, 100%, .7);
            margin-top: 30px;
            padding: 2px 10px;
            border-radius: 5px;
            width: 100%;
            transition: .5s ease-in, .3s ease-out;
            display: flex;
        }

        .header .h-two input {
            flex: 1;
            height: 30px;
            background-color: transparent;
            font-size: 12px;
            line-height: 30px;
            border: 0;
            outline: none;
        }
    </style>
</head>
    
<body>
    <!-- <div class="blog">
        <div class="b-l">
            <div class="blog-img">

                <img src="https://cdn.jsdelivr.net/gh/5ime/img/avatar.jpg" alt="">
            </div>
        </div>
    </div> -->

    <div class="header-box">
        <div class="blog">
            <div class="blog-bg">
                <div class="header">
                    <div class="h-l">
                        <h1><a href="#">liser的个人博客</a></h1>
                        <div class="h-two">
                            <div class="h-y">
                                <input type="text" name="" id="" placeholder="请输入关键字">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="nav">
                    <div class="top">
                        <ul>
                            <li><a href="#">首页</a></li>
                            <li><a href="#">心情说说</a></li>
                            <li><a href="#">博客教程</a></li>
                            <li><a href="#">关于我</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="./js/jquery.js"></script>
    <script>

        $(function () {
            $.ajax({
                url: '/blog',
                type: 'get',
                success: function (data) {
                    console.log(data);
                }
            })
        })
    </script>

</body>

</html>